package com.pie.face_pie;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.util.ResourceUtils;

import java.io.FileNotFoundException;
import java.net.URL;

@SpringBootApplication
@EnableScheduling
@MapperScan(value = "com.pie.face_pie.mapper")
@EnableAsync(proxyTargetClass = true)
public class FacePieApplication {

    public static void main(String[] args) throws FileNotFoundException {
        URL url = ResourceUtils.getURL("classpath:lib/opencv_java451.dll");
        System.load(url.getPath());

        SpringApplication.run(FacePieApplication.class, args);
    }

}
